package com.zhentao.controller;

import com.zhentao.model.dtos.ResponseResult;
import com.zhentao.model.wemedia.dto.WmLogindto;
import com.zhentao.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
public class WmUserController {

    @Autowired
    private WmUserService wmUserService;


    @PostMapping("/in")
    public ResponseResult login(@RequestBody WmLogindto wmLogindto){
        return wmUserService.login(wmLogindto);
    }

}
